The Developer Fastlane

« 365 days to become a developer » challenge

PHP: Forms

October 23, 2020

Ice cream shop price generator

Video: Go to the exercise instructions → 30:11
  1. Instructions

    The goal of this program is to calculate the price of an ice-cream based on the client choices. We provide a bunch of options to customize one's ice-cream. Below are the options available:
    Flavour:
    • Strawberry: $4
    • Chocolate: $5
    • Vanilla: $3
    Cone
    • Bucket: $2
    • Cone: $3
    Extra topping:
    • Chocolate chip: $1
    • Caramel: $1.5
    • Whipped cream: $0.5

    Last instruction: we want the client to be able to share his/her choice with a friend. So we need to use the "GET" method.

My solution

Result:

Result